#include <iostream>
#include <string>
#include <stdlib.h>

using namespace std;

#include "token.h"
#include "ListLexer.h"
#include "lexer.h"
#include "common.h"

int main(int argc, char *argv[]) {
    ListLexer lexer(argv[1]);
    Token t = lexer.next_token();
    while (t.type != EOF_TYPE) {
        cout << t.to_string() << endl;
        t = lexer.next_token();
    }
    cout << t.to_string() << endl;
    system("pause");
    return 0;
}
